if CLIENT then return else
function _R.Player:Arrest()
	self:StripWeapons()
	self:SetRunSpeed( math.Round(self:GetMaxRunSpeed() / 3) )
	--tmysql.query("
end
function _R.Player:UnArrest()
	self:Spawn()
	self:SetRunSpeed( self:GetMaxRunSpeed() )
end
function _R.Player:Unarrest()
	self:UnArrest()
end

concommand.Add("rp_arrest", function( pl, arg )
	if not table.HasValue(GAMEMODE.LawfulTeams, pl:Team()) then pl:ChatPrint("You are not part of the law!") return else
		if pl:GetEyeTrace().Entity:IsValid() and pl:GetEyeTrace().Entity:IsPlayer() then
			pl:GetEyeTrace().Entity:Arrest()
			hook.Call("OnPlayerArrested", GAMEMODE, pl, pl:GetEyeTrace().Entity)
		else
			pl:ChatPrint("Need a valid target!")
		end
	end
end)
concommand.Add("rp_unarrest", function( pl, arg )
	if table.HasValue(GAMEMODE.LawfulTeams, pl:Team()) then
		if pl:GetEyeTrace().Entity:IsValid() and pl:GetEyeTrace().Entity:IsPlayer() then
			pl:GetEyeTrace().Entity:UnArrest()
			hook.Call("OnPlayerUnArrested", GAMEMODE, pl, pl:GetEyeTrace().Entity)
		else
			pl:ChatPrint("Need a valid target!")
		end
	else
		pl:ChatPrint("You are not part of the law!")
	end
end)
end
print("Loading arrest.lua")